package com.ewanghuiju.app.base.contract.login;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.request.LoginRequestBean;
import com.ewanghuiju.app.model.bean.response.BindUserinfoResponBean;
import com.ewanghuiju.app.model.bean.response.LoginResponBean;
import com.ewanghuiju.app.model.bean.response.UserInfoResponBean;

import java.util.List;

/**
 * @author sj  qq:751943509
 * @class describe
 * @time 2020/2/14
 */
public interface CodeLoginContract {

    interface View extends BaseView {
        void showLogin(LoginResponBean bean);

        void showLoginResponseMsg(int code, String message);

        void showUserInfo(UserInfoResponBean bean);

        void showWxUserRegister(LoginResponBean bean);

        void showCodeText(String text);

        void showCodeComplete();

        void showCodeOn();

        void showUserNum(List<BindUserinfoResponBean> list);
    }

    interface Presenter extends BasePresenter<View> {

        void phoneLogin(LoginRequestBean loginRequestBean); //手机号登录

        void getCode(String mobile); //获取验证码

        void getUserInfo();//获取用户信息

        void startInterval();

        void stopInterval();

        void getUserNum(String unionid, String mobile, String code);

        void wxUserRegister(String unionid, String mobile, String number, String headimgurl, String nickname);
    }

}
